package validator;

import validator.annotation.NotNull;
import validator.annotation.Range;
import validator.annotation.Time;
import validator.annotation.Validate;

@Validate
public class User {
	// @NotNull("info can not be null")
	// private Info info = new Info();

	// @NotNull("hehe can not be null")
	// @Range(min = 1, max = 20, value = "nimeide")
	@Time(format = "yyyyMMdd", value = "time error")
	private String hehe = "20150505";

	@NotNull("age null")
	@Range(min = 3, max = 20, value = "hehhe")
	private double age = 3.1;
}
